package fun.boomcat.luckyhe.mirai.plugin.dao;

import fun.boomcat.luckyhe.mirai.plugin.pojo.CommandMapping;

import java.util.List;

public interface CommandMappingMapper {
//    创建数据表
    int createCommandMappingTable();

//    插入一条映射数据
    int insertOneCommandMapping(CommandMapping commandMapping);

//    查找相同source
    CommandMapping selectSameSourceCommandMapper(String source);

//    删除一条映射数据
    int delOneCommandMapping(CommandMapping commandMapping);

//    选择所有条目
    List<CommandMapping> selectAllCommandMapping();

//    选择符合玩家指令的条目
    List<CommandMapping> selectMatchCommandMapping(String source);
}
